package com.zb.sannuo.testing.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zb.sannuo.common.domain.Patient;
import com.zb.sannuo.common.domain.SccPatient;
import com.zb.sannuo.common.domain.SccUserLogin;
import com.zb.sannuo.common.domain.search.PatientDrugstoreSearch;
import com.zb.sannuo.common.domain.vo.PatientDrugstoreVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
public interface TestingMapper extends BaseMapper<SccPatient>{
    //查询
    //  分页
    List<PatientDrugstoreVo> query(Page page, @PathVariable("search") PatientDrugstoreSearch search);

    //根据id修改状态,在页面删除信息
    int updateStatusId(Integer patientId);


    //4个表一起增加

    //用户药店关系表
    int addUserStore(Integer storeId,Integer userId);

    //用户角色表
    int addUserRole(Integer roleId,Integer userId);

    //检测者表
    int addPatient(Patient patient);

    //用户表
    int addUserLogin(SccUserLogin sccUserLogin);

}
